/*
 * @Description:
 * @Author: admin
 * @Date: 2021-06-08 17:00:48
 * @LastEditors: admin
 * @LastEditTime: 2021-06-08 17:02:56
 */
function createPerson (name, age, job) {
  var o = new Object();
  o.name = name;
  o.age = age;
  o.job = job;
  o.sayName = function () {
    alert(this.name);
  }
  return o;
}
var p1 = createPerson('larry', 22, 'boss');
var p2 = createPerson('terry', 19, 'bigBoss');
// console.log(p1);
// console.log(p2);
console.log(typeof p1);
console.log(p1 instanceof Object);